text = input("请输入一段文字：")
with open("D:\\hello.txt", "w") as f:
    f.write(text)
print("已将内容保存至D:\\hello.txt文件")
